-- GENERATED SPELL FOR [Fleeting Plainstrider] --


function spell0_3246(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16828,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3246', 626, 1)
end

function spell1_3246(pUnit, Event) --@Dust Cloud,n/a--
pUnit:FullCastSpellOnTarget(50285,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3246', 0, 1)
end

function spell2_3246(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3246', 0, 1)
end

function Sorts_3246(pUnit, Event)
local choix_sorts_3246 = math.random(0, 2)
if choix_sorts_3246 == 0 then
pUnit:RegisterEvent('spell0_3246', 1, 1)
end
if choix_sorts_3246 == 1 then
pUnit:RegisterEvent('spell1_3246', 1, 1)
end
if choix_sorts_3246 == 2 then
pUnit:RegisterEvent('spell2_3246', 1, 1)
end
end

function mob3246_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3246', math.random(1500, 3000), 1)
end

function mob3246_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3246_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3246_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3246, 1, 'mob3246_Action')
RegisterUnitEvent(3246, 2, 'mob3246_Leave')
RegisterUnitEvent(3246, 3, 'mob3246_Kill')
RegisterUnitEvent(3246, 4, 'mob3246_Die')
